<div class="col-xs-12 panel panel-default">
	<div class="row panel-body">

		<!-- 图表 -->
		<div class="col-xs-8">
			<canvas id="line" class="chart chart-line " chart-data="line.data" chart-labels="line.labels" chart-legend="true" chart-series="line.series"
			 chart-click="onClick">
			</canvas>

			<canvas id="pie" class="chart chart-pie" chart-data="data" chart-labels="labels">
			</canvas>

		</div>

		<div class="col-xs-4">
			<div class="panel panel-default form-horizontal ">
				<div class="panel-body">
					<div class="col-xs-12">                  
						<div class="row">	
							 <div class="col-sm-12">
								 <ui-select ng-model="searchform.place_code" ng-change="change(searchform.place_code)" theme="bootstrap" ng-keyup="myKeyup($event)">
									<ui-select-match placeholder="景区">
										{{$select.selected.viewname}}
									</ui-select-match>
									<ui-select-choices repeat="item.viewcode as item in viewarr | filter: $select.search">
										<span ng-bind-html="item.viewname | highlight: $select.search"></span>
									</ui-select-choices>
								</ui-select>
                            </div>
							
						</div>
						<div class="row mt10">	
                          
							 <div class="col-sm-12">
								 	 <!--<ui-select ng-model="searchform.code"  ng-change="changesale(searchform.code)" theme="bootstrap" ng-keyup="myKeyup($event)">
										<ui-select-match placeholder="产品">
											{{$select.selected.name+'_'+$select.selected.sale_category_name)}}
										</ui-select-match>
										<ui-select-choices repeat="item.code as item in  salearr | filter: $select.search">
											<span ng-bind-html="item.name + '-' + item.sale_category_name | highlight: $select.search"></span>
										</ui-select-choices>
							    	</ui-select>-->
										
											<select class="form-control" ng-model="searchform.sale"  ng-options="(sale.name + '-' +  sale.sale_category_name) for sale in salearr"
												ng-change="changesale(searchform.sale)">
											</select>				
                            </div>
						</div>
						<div class="row mt10">	
                        
							 <div class="col-sm-12">
								 	<input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="section.start.date.label" is-open="section.start.date.opened"
									 ng-required="true" close-text="Close" placeholder="开始时间" ng-click="open($event, section.start.date)" readonly/>
                            </div>
							
						</div>
						<div class="row mt10">	
                            
							 <div class="col-sm-12">
								 <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="section.end.date.label" is-open="section.end.date.opened"
									 ng-required="true" close-text="Close"  placeholder="结束时间" ng-click="open($event, section.end.date)" readonly/>
                            </div>
							
						</div>
						<div class="row mt10">	
                           
							 <div class="col-sm-12">
								  <input type="button " class="btn btn-info search form-control" ng-click="load()" value="立即搜索">
                            </div>
						
                            </div>
						</div>
				


<!--
							<label class="col-xs-2 control-label">景区</label>
							<div class="col-xs-10">
								<select class="form-control" ng-model="searchform.place_code" ng-options="view.viewcode as view.viewname for view in viewarr"
								 ng-change="change(searchform.place_code)">
								<option value=""> --全部-- </option>
								</select>
							</div>
						</div>

						<div class="form-group">
							<label class="col-xs-2 control-label">产品</label>
							<div class="col-xs-10">
								<select class="form-control" ng-model="searchform.sale" ng-options="(sale.name + '-' +  sale.sale_category_name) for sale in salearr"
								 ng-change="changesale(searchform.sale)">
                              </select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-2 control-label">开始</label>
							<div class="col-xs-10">
								<div class="input-group">
								
					
								</div>
							</div>
						</div>-->


						<!--<div class="form-group">
							<label class="col-xs-2 control-label">结束</label>
							<div class="col-xs-10">
								<div class="input-group">
									
								
								</div>
							</div>
						</div>


						<div class="form-group">
							<button type="button" class="btn btn-info btn-block" ng-click="load()">立即搜索</button>

						</div>-->



					<!--</div>-->


					<!-- </div> -->
				        <div class="row mt10">	
						     <div class="col-sm-12">
								<ul class="list-group">
									<li class="list-group-item" ng-repeat="obj in objs">
										{{obj.name + '-' + obj.sale_category_name}}
										<a ng-click="del(obj.code)" class="btn pull-right" style="color: red; padding:0px;">
											<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
										</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		
	</div>
</div>